Summary:	Meta package to install and update Linux kernel
Name:		task-kernel-mos
Version:	0.5
Release:	1
License:	GPLv3
Group:		System/Kernel and hardware
Url:		https://os.mos.ru/git/rp/task-kernel-mos

# Be ok with any kernel, but prefer 6.6 if another is not explicitly installed
Requires:	meta(kernel)
Suggests:	meta(kernel) = 6.6

# Force dnf to keep multiple (default 3) versions of this
# empty meta package installed. If we decide to migrate users from
# e.g. kernel 5.10 to 5.20, this will allow to:
# 1) recommends a new kernel;
# 2) keep older one installed and do not orphan it,
#    because the version of the meta package which pulled it will
#    be kep installed.
# Obsoletes can be used to force removal of installonlypkgs (?).
Provides: installonlypkg(kernel) = %{EVRD}.meta

# Satisfy deps of task-iso-common, but so that "dnf install task-kernel"
# will install real task-kernel from ROSA, not this one
Provides: task-kernel = 0.0.%{EVRD}

%define _description \
Meta package to install and update Linux kernel.\
\
It may be needed to add additional binary kernel modules\
or even migrate users to a new mahor kernel version inside\
the release cycle of a ROSA platform. This meta package\
allows to centrally control which kernel packages\
are recommended (but not forced!) to be installed.\
\
Usage of installonlypkg() here allows to keep multiple\
version of this meta package installed and not remove an\
older major kernel version as an orphan if we decide to\
migrate to a newer one\
(see dnf options installonlypkgs and installonly_limit).\
\
%{nil}

%description
%_description

%files
# empty files, keep empty to allow coninstalling multiple versions
